<template>
  <el-carousel :interval="2000" type="card" height="400px">
    <el-carousel-item v-for="(item,index) in imgList" :key="index">
      
      <img :src="item.src" alt="图片丢失了">
    </el-carousel-item>
  </el-carousel>
</template>

<script>
export default {
    name : "Slide",
    data(){
       return{
           imgList:[
               {
          name: "001.jpg",
          src: require("../Images/ComicBigImg/BIG/OnePieceBIG.jpg"),
        },
        {
          name: "002.jpg",
          src: require("../Images/ComicBigImg/BIG/OnePunchManBIG.jpg"),
        },
        {
          name: "003.jpg",
          src: require("../Images/ComicBigImg/BIG/DemonSlayerBIG.jpg"),
        },
        {
          name: "004.jpg",
          src: require("../Images/ComicBigImg/BIG/Blades.jpg"),
        },
        {
          name: "005.jpg",
          src: require("../Images/ComicBigImg/BIG/Naruto.jpg"),
        },
        {
          name: "006.jpg",
          src: require("../Images/ComicBigImg/BIG/Death.jpg"),
        }
    ]
    }
    }
}
</script>



<style>
  .el-carousel__item h3 {
    color: #475669;
    font-size: 14px;
    opacity: 0.75;
    line-height: 200px;
    margin: 0;
  }
  .el-carousel__item img{
      width: 100%;
      height: 100%;
      border-radius:7px ;
  }
  
  .el-carousel__item:nth-child(2n) {
    background-color: #99a9bf;
  }
  
  .el-carousel__item:nth-child(2n+1) {
    background-color: #d3dce6;
  }
</style>